package org.lecric.wind44.server.service;


import org.lecric.wind44.client.model.UserInfo;
import org.lecric.wind44.client.service.CalculatorService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class CalculatorServiceImpl extends RemoteServiceServlet implements CalculatorService {
	@Override
	public UserInfo getUserInfo() {
//		UserService userService = UserServiceFactory.getUserService();
//		User currentUser = userService.getCurrentUser();
//		if(currentUser!=null)
//		{
//			DBUserInfo userInfo = new DBUserInfo();
//			userInfo.setUser(currentUser.getNickname());
//			// TODO for(DBSail dbSail:)
//			return db2pojo(userInfo);
//		}
//		else
		return null;
	}
}
